package org.wanho.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * Author：汤小洋
 * Date：2024-12-03 11:40
 * Description：<描述>
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class AjaxResult implements Serializable {
    private Integer status; // 响应状态
    private String msg; // 响应消息
    private Object data; // 响应数据

    public static AjaxResult success(String msg){
        return new AjaxResult(200, msg, null);
    }

    public static AjaxResult success(String msg, Object data){
        return new AjaxResult(200, msg, data);
    }
}
